<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><?php echo Vote::model()->findByPk(1)->title?></title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="<?php echo Yii::app()->baseUrl?>/style/css/amazeui.min.css">
<link rel="stylesheet" href="<?php echo Yii::app()->baseUrl?>/style/css/app.css">
<script src="<?php echo Yii::app()->baseUrl?>/style/js/jquery.min.js"></script>
<script src="<?php echo Yii::app()->baseUrl?>/style/js/amazeui.js"></script>
<script src="<?php echo Yii::app()->baseUrl?>/style/js/handlebars.min.js"></script>
<script src="<?php echo Yii::app()->baseUrl?>/style/js/amazeui.widgets.helper.js"></script>  
<script>
var platform = navigator.userAgent.toLowerCase();
window.isIosDevice = (/iphone|ipod|ipad/gi).test(platform);
window.isIPad = (/ipad/gi).test(platform);
window.isAndroid = (/android/gi).test(platform);
window.isAndroidOld = (/android 2.3/gi).test(platform) || (/android 2.2/gi).test(platform);
window.isSafari = (/safari/gi).test(platform) && !(/chrome/gi).test(platform);
function object2str(arr, deep)
{
	if ( typeof arr === "number" || ( !isNaN(+arr) && arr !== '' ) ) return arr;
	else if ( typeof arr === "string" ) return '"' + arr + '"';
	else if ( typeof arr === "function" ) return "一个函数";
	else if ( typeof arr !== "object" ) return String(arr);
	else if ( Object.prototype.toString.call(arr) == "[object RegExp]" ) return arr.toSource();
	var s, i, k, indent, symbol = '    ';
	deep = deep || 1;
	for (indent = '', i = 0; i < deep; i++) indent += symbol;
	s = "Array(\n";
	for (k in arr) {
		s += indent + object2str(k) + ' => ' + object2str(arr[k], deep + 1) + ',\n';
	}
	s += indent.replace(symbol, '') + ')';
	return s;
}
function print_r(arr, ret)
{
	var source = object2str(arr);
	return ret ? source : alert( source );
}

/*接收设备信息，callSystemInfo执行后自动执行此方法*/

function getSystemInfo(json)
{
        print_r(json);
}

/*获取设备信息*/

function callSystemInfo()
{
	if (isIosDevice)
	{
		document.location.hash = '#func=getSystemInfo&parameter={"action" : "haha"}' + '&' + Math.random();
	}
	else if(isAndroid)
	{
		window.android.callSystemInfo();
	}
}

/*接收用户登录信息，callUserInfo执行后自动执行此方法*/

function getUserInfo(data)
{

		if(data['userInfo'] != undefined ){
			alert(data['userInfo']['username']);
			alert(data['userInfo']['userid']);
		}else{
			alert("请先登入您的‘智慧烟台’账号，即可参加报名！");
		}
}



/*获取用户登录信息*/

function callUserInfo()
{
	if (isIosDevice)
	{
		//alert(document.location.hash);
		document.location.hash = '#func=getUserInfo&parameter={"action" : "haha"}' + '&' + Math.random();
	}
	else if(isAndroid)
	{
		window.android.callUserInfo();
	}
}



/*回首页模块列表*/

function goHome()
{
	if (isIosDevice)
	{
		document.location.hash = '#func=goHome';
	}
	else if(isAndroid)
	{
		window.android.goHome();
	}

}

/*后退*/

function goBack()
{
	if (isIosDevice)
	{
		document.location.hash = '#func=goBack';
	}
	else if(isAndroid)
	{
		window.android.goBack();
	}
}

/*进入用户中心*/

function goUcenter()
{
	if (isIosDevice)
	{
		document.location.hash = '#func=goUcenter' + '&' + Math.random();;
	}
	else if(isAndroid)
	{
		window.android.goUcenter();
	}
}

/*进入用户中心登录后回调函数*/

function userLoginSuccess(json)
{
       print_r(json);
}

/*内链跳转*/

function goOutLink(tag)
{
	if (isIosDevice)
	{
		document.location.hash = '#func=goOutlink&parameter='+tag+'';
	}
	else if(isAndroid)
	{
		window.android.goOutlink(tag);
	}
}
/*支付*/

function appWXPay(params, type)
{
	if (isIosDevice)
	{
		params = encodeURIComponent(params);
		document.location.hash = '#func=appWXPay&params=' + params;
	}
	else if(isAndroid)
	{
		window.android.appWXPay(params);
	}
}
function share(content, url, pic)
{
    if(isWeiXin()==true)
    {
        alert('请点击右上角按钮进行分享');
    }
    else
    {
    	if (isIosDevice) {
    		var param = '#func=sharePlatsAction&content='+content+'&content_url='+url;
    		if (pic) param += '&pic=' + pic;
    		window.location.hash = '';
    		window.location.href = param;
    	} else if (isAndroid) {
    		window.android.sharePlatsAction(content,url,pic);
    	}
    }

}
function isWeiXin(){
    var ua = window.navigator.userAgent.toLowerCase();
    if(ua.match(/MicroMessenger/i) == 'micromessenger' || ua.match(/QQ/i) == "qq"){
        return true;
    }else{
        return false;
    }
}
</script>
</head>
<body>
<div class="wrap">

    <div class="mytitle w98"><div class="myfl"><?php echo CHtml::encode($this->contentTitle); ?></div></div>
    <div class="biao w98">
    <?php echo $content; ?>
    </div>
    <!--底部导航-->
    <div data-am-widget="navbar" class="am-navbar am-cf am-navbar-default " id="navbar">
         <ul class="am-navbar-nav am-cf am-avg-sm-4">
             <li >
               <a href="<?php echo  Yii::app()->createUrl('default/index')?>" class="">
                   <img src="<?php echo Yii::app()->baseUrl?>/images/shouye.png" alt="主页"/>
                   <span class="am-navbar-label">主页</span>
               </a>
             </li>
             <li >
                 <a href="<?php echo  Yii::app()->createUrl('default/Select')?>" class="">
                   <img src="<?php echo Yii::app()->baseUrl?>/images/sousuo.png" alt="搜索"/>
                   <span class="am-navbar-label">搜索</span>
                </a>
             </li>
             <li>
               <a href="<?php echo  Yii::app()->createUrl('default/top')?>" class="">
                   <img src="<?php echo Yii::app()->baseUrl?>/images/paihang.png" alt="排行"/>
                   <span class="am-navbar-label">排行</span>
               </a>
             </li>
              <li>
            <a href="#" onclick="share('<?php echo Vote::model()->findByPk(1)->title?>','http://115.28.79.144:8080/vote/index.php/default','http://115.28.79.144:8080/vote/images/fen.jpg');" class="">
                   <img src="<?php echo Yii::app()->baseUrl?>/images/fenxiang.png" alt="分享">
                   <span class="am-navbar-label">分享</span>
               </a>
             </li>
               <li >
               <a href="http://feedback.zhyantai.com/146407696541/41.html" class="">
                   <img src="<?php echo Yii::app()->baseUrl?>/images/baoming.png" alt="报名"/>
                   <span class="am-navbar-label">报名</span>
               </a>
             </li>
         </ul>
     </div>        
     <!--底部导航-->
</div>

</body>
</html>
